package com.tianji.remark.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.remark.domain.dto.LikeRecordFormDTO;
import com.tianji.remark.domain.po.LikedRecord;

import java.util.List;
import java.util.Set;

public interface ILikedRecordService extends IService<LikedRecord> {

    /**
     * 点赞或取消点赞
     * @param recordFormDTO
     */
    void addLikeRecord(LikeRecordFormDTO recordFormDTO);

    /**
     * 查询指定业务id的点赞状态
     * @param bizIds
     * @return
     */
    Set<Long> isBizLiked(List<Long> bizIds);

    /**
     * 定时任务：检查并发送点赞次数
     * @param bizType
     * @param maxBizSize
     */
    void readLikedTimesAndSendMessage(String bizType, int maxBizSize);
}